package com.liang.interview.server.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.liang.interview.api.common.PageDTO;
import com.liang.interview.api.req.InterviewHistoryReq;
import com.liang.interview.api.req.InterviewSubmitReq;
import com.liang.interview.api.vo.InterviewHistoryVO;
import com.liang.interview.api.vo.InterviewResultVO;
import com.liang.interview.server.entity.po.InterviewHistory;

/**
 * 面试汇总记录表接口层
 */
public interface InterviewHistoryService extends IService<InterviewHistory> {

    /**
     * 记录面试结果
     */
    void logInterview(InterviewSubmitReq req, InterviewResultVO submit);

    /**
     * 分页查询面试记录
     */
    PageDTO<InterviewHistoryVO> getHistory(InterviewHistoryReq req);
}
